package com.itheima.chapter06.lambda.test6;

public class Test {
    public static void main(String[] args) {

        useInter((double a,double b)->{return a+b;});
        //优化
        useInter((a,b)->a+b);
    }


    public static void useInter(Inter i){
        double result = i.method(22.2,36.6);
        System.out.println(result);
    }

}
interface Inter{
    double method(double a,double b);
}